home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue57 / Clinic / DCPanel.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2000-03-22  |  550 b   |  33 lines

  1. unit DCPanel;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   ExtCtrls;
  8.  
  9. type
  10.   TDCPanel = class(TPanel)
  11.   protected
  12.     procedure CreateParams(var Params: TCreateParams); override;
  13.   end;
  14.  
  15. procedure Register;
  16.  
  17. implementation
  18.  
  19. procedure Register;
  20. begin
  21.   RegisterComponents('Clinic', [TDCPanel]);
  22. end;
  23.  
  24. { TDCPanel }
  25.  
  26. procedure TDCPanel.CreateParams(var Params: TCreateParams);
  27. begin
  28.   inherited;
  29.   Params.ExStyle := Params.ExStyle and not WS_EX_CONTROLPARENT;
  30. end;
  31.  
  32. end.
  33.